package com.example.doodletogether;

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.view.WindowManager;

public class Draw extends Activity {
    DrawView drawView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.doodle_alone);
        
//        // Set full screen view
//        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
//                                         WindowManager.LayoutParams.FLAG_FULLSCREEN);
//        requestWindowFeature(Window.FEATURE_NO_TITLE);
//
//        drawView = new DrawView(this);
//        setContentView(drawView);
//        drawView.requestFocus();
    }    
    
    @Override
    public void onStart() {
    	super.onStart();
    	
    	getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
    	drawView = new DrawView(this);
		ViewGroup v= (ViewGroup)findViewById(R.id.linear_draw_layout);  
		v.addView(drawView);
		drawView.requestFocus();
    }
}
